import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/index'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

//常量
import SystemConstant from './store/constant/SystemConstant'

//引入pinia 状态管理
import counterStore from "./store/pinia";
//引入pinia
import { createPinia } from "pinia";

const pinia = createPinia()
const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}


app.use(SystemConstant)
app.use(pinia)
// app.use(counterStore())
app.use(ElementPlus)
app.use(router)
app.mount('#app');

// console.log('Vue加载....');